Generate Avatars In Tiki
Use Case
- Generate an avatar for users upon registration
- Provide them the possibility to customize the avatar
Candidates
1.1. DiceBear
Create avatars for your profiles, designs, websites or apps. Piece by piece or based on a seed.
Pros
- Has a lot of styles that a user could pick from
- An active js library: https://www.dicebear.com/how-to-use/js-library/
(ESM package)
Cons
- The avatar styles collections are created by different artists and licensed by artists themselves. But, most of them have licenses compatible with Tiki to my viewpoint. https://www.dicebear.com/licenses
DiceBear
Lib statistics
- Over 2k usages
- Get frequent updates
1.2. JDenticon
Open source library for generating identicons.
What’s proposed here is already included in the previous lib; the “IdentIcon” style from DiceBear.
1.3. Boring Avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Pros
- Generates avatars from usernames or emails
- Has different variants: marble, beam, pixel, sunset, ring and bauhaus
Cons
- A React-based library.
- No free access to the API service.
Lib statistics
- Over 2.1k usages
- Get frequent updates
A similar project by the Converse team: https://github.com/conversejs/converse.js/pull/3402![]()